﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum FreezeCause
    {
        /// <summary>
        /// 用户冻结
        /// </summary>
        Freeze_User = 0,
        /// <summary>
        /// 提款冻结
        /// </summary>
        Freeze_TakeMoney = 1,
        /// <summary>
        /// 代理冻结
        /// </summary>
        Freeze_Command = 2,
        /// <summary>
        /// 管理员/系统冻结
        /// </summary>
        Freeze_Manage = 3,


        /// <summary>
        /// 用户解冻
        /// </summary>
        Free_User = 4,
        /// <summary>
        /// 代理解冻
        /// </summary>
        Free_Command = 5,
        /// <summary>
        /// 管理员/系统解冻
        /// </summary>
        Free_Manage = 6
    }
    public static class FreezeCauseEx
    {
        public static string GetName(this FreezeCause cause)
        {
            switch (cause)
            {
                case FreezeCause.Freeze_User:
                    return "用户冻结";
                case FreezeCause.Freeze_TakeMoney:
                    return "提款冻结";
                case FreezeCause.Freeze_Command:
                    return "代理冻结";
                case FreezeCause.Freeze_Manage:
                    return "管理员/系统冻结";


                case FreezeCause.Free_User:
                    return "用户解冻";
                case FreezeCause.Free_Command:
                    return "代理解冻";
                case FreezeCause.Free_Manage:
                    return "管理员/系统解冻";
                default:
                    return cause.ToString();
            }
        }
    }
}
